package com.ruoyi.tbxt.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class BizSystem extends BaseEntity {
    @Excel(name = "系统ID", cellType = Excel.ColumnType.NUMERIC)
    private Long bizId;
    @Excel(name = "系统名称")
    private String bizName;

    /**
     * 唯一的
     */
    @Excel(name = "系统编号")
    private String bizCode;
    @Excel(name = "优先级")
    private int priority;
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String bizStatus;
    @Excel(name = "系统地址", type = Excel.Type.EXPORT)
    private String bizAddr;

    public Long getBizId() {
        return bizId;
    }

    public void setBizId(Long bizId) {
        this.bizId = bizId;
    }
    @Xss(message = "系统名称不能包含脚本字符")
    @NotBlank(message = "系统名称不能为空")
    @Size(min = 0, max = 30, message = "系统名称长度不能超过30个字符")
    public String getBizName() {
        return bizName;
    }

    public void setBizName(String bizName) {
        this.bizName = bizName;
    }
    @NotBlank(message = "系统编号不能为空")
    @Size(min = 0, max = 16, message = "系统名称长度不能超过16个字符")
    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }
    @NotBlank(message = "系统地址不能为空")
    public String getBizAddr() {
        return bizAddr;
    }

    public void setBizAddr(String bizAddr) {
        this.bizAddr = bizAddr;
    }
}
